package com.copyctrl.feignapi.client;

import com.copyctrl.campus.common.model.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author:JH
 * @version:1.0
 */

@FeignClient("localhost:8000/portal/passage")
//等使用docker部署时才能指定服务名，现在只能用地址测试
public interface PassageClient {
    @GetMapping("/kind")
    public ApiResponse getAllKinds();
    @GetMapping("/detail/{id}")
    public ApiResponse getById(@PathVariable Integer id);
}
